package com.mall.service.data;

import java.util.ArrayList;

import com.mall.core.service.auth.Credential;
import com.mall.util.UserName;

// apply singleton pattern.
public class LoginData {
private ArrayList<Credential> customercredentials = null;
public void createLoginData(){
	customercredentials = new ArrayList<Credential>();
	customercredentials.add(new Credential(new UserName("amosomokpo"),"1234"));// add a lot of data to this arraylist 
	//and make the list serializable and deserializable.
}
public ArrayList<Credential> getLoginData(){
	
	return this.customercredentials;
}

public void addLoginData(Credential credentials ){
	customercredentials.add(credentials) ;
}
}
